class Singlemon{
    private static Singlemon instance = new Singlemon();
    public Singlemon() {

    }
    public static Singlemon get(){
        return instance;
    }

}
//
class Singlemon2 {
    private static Singlemon2 instance2 = null;

    public Singlemon2() {

    }

    public static synchronized Singlemon2 get() {
        if (instance2 == null) {
            synchronized (Singlemon2.class) {
                if (instance2 == null) {
                    instance2 = new Singlemon2();
                }
                }
            }
        return instance2;
        }

    }


public class Danli_widf {
    public static void main(String[] args) {

    }
}
